package ichubcontext

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const singleNameIchubClientFactroy = "IchubClientFactroy"

// init
// register
// load
func init() {
	registerBeanIchubClientFactroy()
}

// register IchubClientFactroy
func registerBeanIchubClientFactroy() {
	basedi.RegisterLoadBean(singleNameIchubClientFactroy, LoadIchubClientFactroy)
}

func FindBeanIchubClientFactroy() *IchubClientFactroy {
	return basedi.FindBean(singleNameIchubClientFactroy).(*IchubClientFactroy)
}

func LoadIchubClientFactroy() baseiface.ISingleton {
	return NewIchubClientFactroy()
}
